ARG JAVA_V=11.0.29
FROM registry.cn-hangzhou.aliyuncs.com/xiaoyilin/scala212:jdk${JAVA_V}-2.12.20
ARG FLINK_V=1.19.3
ADD flink-${FLINK_V}-bin-scala_2.12.tgz /usr/local/
WORKDIR /usr/local/flink-${FLINK_V}


# https://dlcdn.apache.org/flink/
# https://dlcdn.apache.org/flink/flink-1.19.3/flink-1.19.3-bin-scala_2.12.tgz
# https://dlcdn.apache.org/flink/flink-1.20.3/flink-1.20.3-bin-scala_2.12.tgz
# docker build --build-arg FLINK_V=1.19.3 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/flink:1.19.3-java11 .
# docker build --build-arg FLINK_V=1.20.3 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/flink:1.20.3-java11 .
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/flink:1.19.3-java11
# docker run --rm -it  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/flink:1.19.3-java11 bash
# 启动集群
# ./bin/start-cluster.sh
# 停止集群
# ./bin/stop-cluster.sh